using System;
using System.Threading;
using FacebookModule.UserDetails;
using Microsoft.Practices.Composite.Modularity;
using PrismNavigationFramework.MVVM;

namespace FacebookModule
{
    public class InitModule : IModule
    {
        private readonly IViewRegistrationService _viewRegistrationService;

        public InitModule(IViewRegistrationService viewRegistrationService)
        {
            _viewRegistrationService = viewRegistrationService;
        }

        public void Initialize()
        {
            this._viewRegistrationService.RegisterViewAndViewModel<UserDetailsView, UserDetailsViewModel>();
        }
    }
}